﻿using System.Data;
using DAL;

namespace BLL
{
    public class BllSell
    {
        #region[Get-Data]
        public DataTable GetSell(string keywords)
        {
            return DalSell.GetSell(keywords);
        }
        public DataTable GetSellEdit(int id)
        {
            return DalSell.GetSellEdit(id);
        }
        public DataTable GetOrderSellDetailExists()
        {
            return DalSell.GetOrderSellDetailExists();
        }
        public DataTable GetOrderSellDetailTemp(int User_Id)
        {
            return DalSell.GetOrderSellDetailTemp(User_Id);
        }
        public DataTable GetOrderSellDetailEditExist(int User_Id, int ID_Sell)
        {
            return DalSell.GetOrderSellDetailEditExist(User_Id, ID_Sell);
        }
        public DataTable GetOrderSellDetailEdit(int id)
        {
            return DalSell.GetOrderSellDetailEdit(id);
        }
        public DataTable GetOrderSellDetailEditA(int id)
        {
            return DalSell.GetOrderSellDetailEditA(id);
        }
        public DataTable GetOrderSellDetailEditB(int id)
        {
            return DalSell.GetOrderSellDetailEditB(id);
        }
        public DataTable GetOrderSellDetailSum(int User_ID, int Flag)
        {
            return DalSell.GetOrderSellDetailSum(User_ID,Flag);
        }
        public DataTable GetOrderSellDetailSumEdit(int id, int Flag)
        {
            return DalSell.GetOrderSellDetailSumEdit(id, Flag);
        }
        public DataTable GetOrderSell(string keywords)
        {
            return DalSell.GetOrderSell(keywords);
        }
        public DataTable GetOrderSellEdit(int id)
        {
            return DalSell.GetOrderSellEdit(id);
        }
        public DataTable GetOrderSellGridEdit(int id)
        {
            return DalSell.GetOrderSellGridEdit(id);
        }
        public static bool GetOrderSellGridCheck(EtOrderSell obj)
        {
            return DalSell.GetOrderSellGridCheck(obj);
        }
        public DataTable GetOrderSellFillterDate(string DateBegin, string DateEnd)
        {
            return DalSell.GetOrderSellFillterDate(DateBegin, DateEnd);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertSell(EtSell obj)
        {
            return DalSell.InsertSell(obj);
        }
        public static bool InsertSellDetail(EtSellDetail obj)
        {
            return DalSell.InsertSellDetail(obj);
        }
        public static bool UpdateQuanlityOrder(EtSellDetail obj)
        {
            return DalSell.UpdateQuanlityOrder(obj);
        }
        public static bool UpdateQuanlityOrderRoot(EtSellDetail obj)
        {
            return DalSell.UpdateQuanlityOrderRoot(obj);
        }
        public static bool UpdateOrderSell(EtSell obj)
        {
            return DalSell.UpdateOrderSell(obj);
        }
        public static bool DeleteSellDetailMaterial(EtSellDetail obj)
        {
            return DalSell.DeleteSellDetailMaterial(obj);
        }
        public static bool DeleteSellOrder(EtSellDetail obj)
        {
            return DalSell.DeleteSellOrder(obj);
        }
        public static bool DeleteSell(EtSell obj)
        {
            return DalSell.DeleteSell(obj);
        }
        public static bool InsertSellWithOrder(EtSell obj)
        {
            return DalSell.InsertSellWithOrder(obj);
        }
        public static bool InsertSellDetailWithOrder(EtSellDetail obj)
        {
            return DalSell.InsertSellDetailWithOrder(obj);
        }
        #endregion
    }
}